{# src/Abzu/ArticlesBundle/Resources/views/Articles/form.html.twig #}

{% if not article.id %}
<form action="{{ path('AbzuArticlesBundle_articles_create') }}"
      method="post" class="abzu-article-form">
{% else %}
<form action="{{ path('AbzuArticlesBundle_articles_update', { 'id': article.id }) }}"
      method="post" class="abzu-article-form">
{% endif %}
      {{ form_row(form.title) }}
      {{ form_row(form.name) }}
      {{ form_row(form.body) }}
      {{ form_rest(form) }}
      <input type="submit" value="Save" />
</form>
